<?php
$toolbar    =new ToolBarHelper($act);
$toolbar->setSubmitAjax(true);

if($act=="edit")
{   
    $toolbar->SetTitle('Edit');
    $toolbar->Back(getUrlBack());
    $toolbar->Apply();
    $toolbar->Save();
}
else if($act=="config")
{
    $toolbar->SetTitle('[Config]');
    $toolbar->Back(getUrlBack());
    $toolbar->Apply();
}
else
{
    $toolbar->setSubmitAjax(false);
    if(count($reviews)>0)
    {
        $toolbar->Delete('delete');
    }

    $toolbar->Apply();    
    $toolbar->background('config','Config');
}
?>